package com.black.cat.seed.entity;


import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import javax.validation.constraints.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 隐患排查治理
 *
 * @author blackcat
 * @since 2021-03-26
 */
@Data
@ApiModel(description = "隐患排查治理")
public class DefectsManage extends  BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull()
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "隐患描述")
    private String description;

    @ApiModelProperty(value = "当前工作")
    private String presentWork;

    @ApiModelProperty(value = "发起人")
    private String initiator;

    @ApiModelProperty(value = "接收时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date acceptTime;

    @ApiModelProperty(value = "隐患来源")
    private String source;

    @ApiModelProperty(value = "潜在事故")
    private String latentDefect;

    @ApiModelProperty(value = "整改情况")
    private String abarbeitung;

    @ApiModelProperty(value = "复核情况")
    private String review;

    @ApiModelProperty(value = "隐患编号")
    private String defectNo;

    @ApiModelProperty(value = "备注")
    private String remark;


}
